/* 侧边栏收缩相关样式 */
.drawer.sidebar-collapsed .drawer-side {
    width: 64px !important;
}

.drawer.sidebar-collapsed .drawer-side .menu {
    width: 64px;
    padding: 1rem 0.5rem;
}

.drawer.sidebar-collapsed .drawer-side .menu .menu-title,
.drawer.sidebar-collapsed .drawer-side .menu span {
    display: none;
}

.drawer.sidebar-collapsed .drawer-side .menu svg {
    margin-right: 0;
}

.drawer.sidebar-collapsed .drawer-content {
    margin-left: 64px;
}

/* 平滑过渡 */
.drawer-side, .drawer-content, .menu, .menu-title, .menu span {
    transition: all 0.3s ease;
}

/* 修复侧边栏按钮位置和样式 */
.sidebar-header {
    position: relative;
    padding-right: 20px;
    margin-bottom: 1rem;
}

#sidebar-collapse-btn {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    min-height: unset;
}

#sidebar-collapse-btn:hover {
    background: #f0f0f0;
}

.drawer.sidebar-collapsed #sidebar-collapse-btn {
    transform: translateY(-50%) rotate(180deg);
}

/* 确保按钮在桌面端显示 */
@media (min-width: 1024px) {
    #sidebar-collapse-btn {
        display: flex !important;
    }
} 